{% extends 'ProyectoMainBundle:Layout:layout.html.twig' %}
{% block javascripts %}
  {{ parent() }}
  <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
  <script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
  <script src="{{ asset('bundles/proyectomain/js/cargarElementos.js') }}"></script>
{% endblock %}
{% block content %}
{% if resultado is defined %}
  {{ resultado }}
{% endif %}

    <form action="{{ path('elemento_create') }}" method="post" {{ form_enctype(form) }} >
        {{ form_row(form.plantilla, { 'attr': {'onchange': 'activarTipos()'} }) }}
        {{ form_row(form.tipo, { 'attr': {'onchange': 'habilitar(this.id)','disabled': 'true'}}) }}
        {{ form_errors(form) }}
        <div id="target">
	</div>
   <div>
            <button type="submit" id="submit" disabled="true">Create</button>
        </div>
<a href="{{ asset('bundles/proyectomain/extras/listaItems.html') }}" id="listaItemsUrl" hidden="true"></a>
<a href="{{ asset('bundles/proyectomain/extras/listaSeparadores.html') }}" id="listaSeparadoresUrl" hidden="true"></a>
<a href="{{ asset('bundles/proyectomain/extras/label.html') }}" id="labelUrl" hidden="true"></a>
{% endblock %}